package com.project.movie.controllers;



import com.project.movie.entities.UserAccount;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("users")
public class UserController {

    @GetMapping("/new")
    public String displayUserForm(Model model){

        UserAccount aUserAccount =new UserAccount();
        model.addAttribute("user", aUserAccount);
        return "new-user";
    }
}
